#include "wifilistmodel.h"


WiFiListModel::WiFiListModel(QObject *parent) : ListModel( new WiFiItemModel, parent )
{
}


void WiFiListModel::append( QString &_wfEssid, QString &_wfChanel, QString &_wfMac, QString &_wfLeveldBm, QString &_wfLevelPer, QString &_wfEncrypt, QString &_wfEncryptPic, QString &_wfChannelFreq ) {
    this->appendRow( new WiFiItemModel(_wfEssid, _wfChanel, _wfMac, _wfLeveldBm, _wfLevelPer, _wfEncrypt, _wfEncryptPic, _wfChannelFreq, this) );
}

void WiFiListModel::append( WiFiItemModel *item ) {
    this->appendRow( item );
}

void WiFiListModel::remove( int index ) {
    this->removeRow( index );
}

int WiFiListModel::count() {
    return this->rowCount();
}

void WiFiListModel::clearList()
{
    this->clear();
}
